Skip to content

[test] desktop: allow slower smoke project switches - #679

Merged
FayeSpica merged 1 commit into
ThinkFlowLab:mainfrom
FayeSpica:fix/desktop-switch-smoke-timeout
Dec 4, 2026
Merged

FayeSpica merged 1 commit into
ThinkFlowLab:mainfrom
FayeSpica:fix/desktop-switch-smoke-timeout

Conversation

@FayeSpica

Copy link
Copy Markdown
Collaborator

Summary

  • Set a 10-second polling budget for each rapid project-switch batch and share a 40-second polling budget across the eight batches. The checks resume on animation frames, so a late frame can finish just past the polling deadline. The 90-second launch watchdog remains the hard limit.
  • Keep the canvas continuity and workspace readiness checks. Include the batch number and allotted wait in the timeout error.

Linked issue

Follow-up to #677. The main macOS run failed in rapid project switching during launch three. The failure identifies the assertion but does not establish why the switch did not settle.

Labels

type:ci, area:desktop, area:ci

Test plan

  • Local at 56497d501c1bb5f9a357f513c46e6982c8f381ac: full PR-diff pre-commit, Node syntax check, eight desktop tests with the prepared Host, and a controlled-clock probe of the committed smoke code.
  • A fixture that becomes ready after seven seconds fails on the base and passes on this head. A stuck switch still fails, as do exhausting the sequence budget and replacing the canvas.
  • The macOS arm64 DMG was built and signed locally. Its installed app completed all three smoke launches, including the delete-project and rapid-switch sequence. The installed smoke script was verified byte-for-byte against the commit.
  • Hosted checks pending: Release checks, including both installer jobs, Desktop checks, CodeQL and DSH scope selection.
  • Independent pre-review: 85/100. Reviewed base f3251839da5a52818ade05eec766fee3cc51d3f9 and head 56497d501c1bb5f9a357f513c46e6982c8f381ac. The hosted installer checks remain pending. The independent probe observed a late frame completing at 40.2 seconds with synthetic 600 ms frames.

Evidence that it works

  • Validation receipt and repeatable probe show the timing comparison, installed smoke result and package checksum for the candidate.
  • Visual evidence is N/A because this changes the installed test harness and its diagnostics.

Provider verification

The smoke uses an isolated profile and local fixtures. The controlled probe replaces the browser clock and readiness conditions.

Bilingual UI

The changes affect internal smoke assertions and CI diagnostics.

## summary

- Allow up to ten seconds for a rapid-switch batch to settle within a
  forty-second budget for the sequence.
- Report the switch number and its wait when the workspace does not
  settle.
@FayeSpica FayeSpica added area:ci Continuous integration and checks area:desktop Desktop integration / 桌面集成 type:ci Build, test and release automation labels Dec 4, 2026 — with ChatGPT Codex Connector
@FayeSpica
FayeSpica merged commit 9fce747 into ThinkFlowLab:main Dec 4, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci Continuous integration and checks area:desktop Desktop integration / 桌面集成 type:ci Build, test and release automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant